package com.woniu.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.List;

/**
 * <p>
 * 
 * </p>
 *
 * @author Kevin Kwok
 * @since 2021-04-13
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class BmsPermission implements Serializable {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 权限名称
     */
    private String permissionName;

    /**
     * 当前权限访问的资源路径
     */
    private String resource;

    /**
     * 当前权限所对应的父级权限的编号
     */
    private Integer pid;

    /**
     * 记录当前权限的级别
     */
    private String level;

    /**
     * 记录当前权限的子菜单
     */
    private List<BmsPermission> children;

}
